<div class="right-panel">
      <h2><?php echo __('PAYEE_PROFILE_MAINTENANCE');?>
           <span  class="back-align">
                <?php echo $this->html->link('<< ' . __('BACK', true), array('controller' => 'payees', 'action' => 'payee_links'), array('div' => false, 'alt' => '<< ' . __('BACK', true), 'title' => '<< ' . __('BACK', true), 'class' => 'back-nav', 'escape' => false)); ?>
            </span>
        </h2>
      <div class="content-outer">
        <div class="top-btns">
            <?php echo $this->Form->create("Payee");?>
                <table width="100%" cellpadding="2" cellspacing="2" border="0">
                   <tr>
                           <td width="10%" align="right"><b><?php echo __('SEARCH')?>:<b></td>
                           <td  align="left">
                                   <?php echo $this->Form->input('Payee.search_criteria', array('maxlength'=>'100','class'=>'text-input normal-wdh required','label'=>false,'div'=>false)); ?>
                           </td>

                           <td align="left" width="45%">
                               <div class="actionbtns">
                                   <?php
                                   echo $this->Js->submit(__('SEARCH',true), array(
                                       'update' => '#divUpdate', "class"=>"button",'label'=>false, 'div' => false, 
                                       'before' => $this->Js->get('#divUpdate')->effect('fadeOut'), 
                                       'success' => $this->Js->get('#divUpdate')->effect('fadeIn')));
                                   ?><div class="buttonEnding"></div>
                           </div>
                           </td>
                           <td align="left" width="20%">
                               <div class="actionbtns">
                                   <?php
                                   
                                    if(!$roleId){//No checks for superadmin
                                          echo $this->Html->link( __('ADD_PAYEE',true), array('controller'=>'payees', 'action'=>'add'), array("class"=>"button",'label'=>false));
                                          echo '<div class="buttonEnding"></div>';
                                    }else{
                                          if($showPayeeAddURL){
                                              echo $this->Html->link( __('ADD_PAYEE',true), array('controller'=>'payees', 'action'=>'add'), array("class"=>"button",'label'=>false));
                                              echo '<div class="buttonEnding"></div>';
                                          }
                                    }
                                    ?>
                                    
                               </div>
                           </td>
                   </tr>
               </table>
           <?php echo $this->Form->end();?>
        </div>
        
          <!-- Div update starts here -->
          <div id="divUpdate">
          <?php echo $this->element('payees/list');?>
          </div>
          <!-- Div update ends here -->
      </div>
      <!--content-outer End-->
    </div>